package com.kenai.jbosh;

abstract class AbstractAttr<T extends Comparable>
  implements Comparable
{
  private final T value;

  protected AbstractAttr(T paramT)
  {
    this.value = paramT;
  }

  public int compareTo(Object paramObject)
  {
    int i;
    if (paramObject == null)
      i = 1;
    while (true)
    {
      return i;
      i = this.value.compareTo(paramObject);
    }
  }

  public boolean equals(Object paramObject)
  {
    boolean bool;
    if (paramObject == null)
      bool = false;
    while (true)
    {
      while (true)
      {
        return bool;
        if (!(paramObject instanceof AbstractAttr))
          break;
        AbstractAttr localAbstractAttr = (AbstractAttr)paramObject;
        bool = this.value.equals(localAbstractAttr.value);
      }
      bool = false;
    }
  }

  public final T getValue()
  {
    return this.value;
  }

  public int hashCode()
  {
    return this.value.hashCode();
  }

  public String toString()
  {
    return this.value.toString();
  }
}